home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8786 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  852 b 

  1. Path: halon.vggas.com!news
  2. From: JYoungman@vggas.com (James Youngman)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Calling a Function Twice from a printf statement.
  5. Date: 6 Mar 1996 10:53:24 GMT
  6. Organization: VG Gas Analysis Systems
  7. Message-ID: <4hjqr4$s70@halon.vggas.com>
  8. References: <4he6q9$6r6@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: 132.147.163.4
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <4he6q9$6r6@newsbf02.news.aol.com>, razine@aol.com says...
  15. >
  16. >I am trying to call a function twice from my program on the same printf
  17. >line and have run into a small problem.  i was wondering if someone can
  18. >explain how to fix it.
  19.  
  20. The ANSI standard specifies nothing about the order of calls in statements 
  21. such as:-
  22.  
  23. foo("string", bar(1), baz(2));
  24.  
  25. or the degenerate case:-
  26.  
  27. foo(bar(1),bar(2));
  28.  
  29. James.
  30.  
  31.